home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / research / lib / obsolete / prompt.pro < prev    next >
Text File  |  1997-07-08  |  924b  |  36 lines

  1. ; $Id: prompt.pro,v 1.2 1997/01/15 04:02:19 ali Exp $
  2. ;
  3. ; Copyright (c) 1990-1997, Research Systems, Inc.  All rights reserved.
  4. ;       Unauthorized reproduction prohibited.
  5.  
  6. pro PROMPT, String
  7. ;+
  8. ; NAME:
  9. ;    PROMPT
  10. ;
  11. ; PURPOSE:
  12. ;    PROMPT sets the interactive prompt, normally "IDL>", to the
  13. ;    specified string.  If no parameter is supplied, the prompt string
  14. ;    reverts to "IDL>".  This procedure was built-in under version 1 VMS
  15. ;    IDL, and is provided in this form to help users of that version
  16. ;    adapt to version 2.
  17. ;
  18. ; CALLING SEQUENCE:
  19. ;    PROMPT [, String]
  20. ;
  21. ; OPTIONAL INPUT:
  22. ;    String:    A scalar string giving the new prompt.
  23. ;
  24. ; OUTPUT:
  25. ;    The interactive prompt (controlled by the !PROMPT system variable)
  26. ;    is changed.
  27. ;
  28. ; RESTRICTIONS: None
  29. ;
  30. ; REVISION HISTORY:
  31. ;    10 January 1990
  32. ;-
  33. on_error,2                      ;Return to caller if an error occurs
  34. if n_params() eq 0 then !prompt = 'IDL> ' else !prompt = string
  35. end
  36.